treeview: make sure separator nodes have a height > 0
authorChristoph Reiter <reiter.christoph@gmail.com>
Sun, 3 Mar 2019 09:38:18 +0000 (10:38 +0100)
committerChristoph Reiter <creiter@src.gnome.org>
Mon, 4 Mar 2019 16:07:13 +0000 (17:07 +0100)
commit348912dff4efe884dd66fe616144a6e1bdbfbe9b
tree96d633b84e8b204f30235f0885615f4e704b58f4
parent45ea288ba24e09a346d83fb71d3626cced1c6272
treeview: make sure separator nodes have a height > 0

In case the theme doesn't set a height/min-height for the treeview
separator the treeview drawing gets confused and draws rows on top of each
other depending on the redraw area.

This is due to gtk_tree_view_get_row_height() assuming that a node with a
height <= 0 is not set and not a separator and it will default to the
expander size.

Ideally gtk_tree_view_get_row_height() would know if it operates on a separator,
but there are too many calls/levels, so just make sure the separator height
is at least 1 (Adwaita already sets "min-height: 2px", so no change there)

Cherry-picked from !614 to master
gtk/gtktreeview.c